//
//  BIDBillsManager.h
//  随手记01
//
//  Created by zd2011 on 13-5-23.
//  Copyright (c) 2013年 邵瑞. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "FMDatabaseAdditions.h"
@class BIDABill;
@interface BIDBillsManager : NSObject
+(BIDBillsManager*)shareBillsManager;


//aPayout Manager
-(BOOL) insertAPayout:(BIDABill*)aPayout ;
-(BOOL)updataThePayout:(BIDABill*)NewPayout andOldPayout:(BIDABill*)oldPayout;
-(BOOL)deleteAPayout:(BIDABill*)payout;
//-(NSMutableArray * )deleteBill;
////read BillsOfYears
//-(NSMutableArray*)databaseHadYears;

////按照月份查看数据
//-(NSInteger)numberOfMonthInYear:(NSInteger)aYear;
//-(NSMutableArray *)databaseHadMonthsInTheYear:(NSInteger)aYear;
//-(NSMutableArray *)databaseHadMonthInTheYear:(NSInteger)month andInYear:(NSInteger)year;
//-(NSInteger)aMonthHadBillsCountInAYear:(NSInteger)month andInYear:(NSInteger)year;
//-(NSMutableArray*)aMonthHadBillsInAYear:(NSInteger)month andInYear:(NSInteger)year;
////按照类别查看
//-(NSInteger)numberOfTypesInYear:(NSInteger)aYear;
@end
